from scipy.interpolate import interp1d
import numpy as np

# 定义数据点
x = np.linspace(0, 10, 10)
y = np.sin(x)

# 创建插值函数
f = interp1d(x, y, kind='cubic')

# 使用插值函数
x_new = np.linspace(0, 10, 100)
y_new = f(x_new)